package com.ruoyi.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租售合同对象 zhwy_rentalcontract
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
public class ZhwyRentalcontract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自增 */
    private Long id;


    /** 商铺编号-外键 */
    @Excel(name = "商铺编号-外键")
    private Long shopsId;

    /** 类别【数据字典】 */
    @Excel(name = "类别【数据字典】")
    private Long type;

    /** 租户id-外键 */
    @Excel(name = "租户id-外键")
    private Long hirerId;

    /** 租金 */
    @Excel(name = "租金")
    private Long rent;

    /** 行业 */
    @Excel(name = "行业")
    private String trade;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 出租时长(月) */
    @Excel(name = "出租时长(月)")
    private Long taxi;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 合同状态【数据字典  生效中  撤销   逾期】 */
    @Excel(name = "合同状态【数据字典  生效中  撤销   逾期】")
    private Long state;

    private Long dId;

    private String  shopsCode;

    private String hirerCompany;
    private String hirerName;
    private String hirerCard;

    private String hirerSex;
    private String hirerPhone;

    private int shopsState;

    private BigDecimal shopSUserArea;


    public BigDecimal getShopSUserArea() {
        return shopSUserArea;
    }

    public void setShopSUserArea(BigDecimal shopSUserArea) {
        this.shopSUserArea = shopSUserArea;
    }

    public ZhwyRentalcontract() {
    }

    public ZhwyRentalcontract(Long id, Long shopsId, Long type, Long hirerId, Long rent, String trade, Date startTime, Long taxi, Date endTime, Long state, Long dId, String shopsCode, String hirerCompany, String hirerName, String hirerCard, String hirerSex, String hirerPhone, int shopsState) {
        this.id = id;
        this.shopsId = shopsId;
        this.type = type;
        this.hirerId = hirerId;
        this.rent = rent;
        this.trade = trade;
        this.startTime = startTime;
        this.taxi = taxi;
        this.endTime = endTime;
        this.state = state;
        this.dId = dId;
        this.shopsCode = shopsCode;
        this.hirerCompany = hirerCompany;
        this.hirerName = hirerName;
        this.hirerCard = hirerCard;
        this.hirerSex = hirerSex;
        this.hirerPhone = hirerPhone;
        this.shopsState = shopsState;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getShopsId() {
        return shopsId;
    }

    public void setShopsId(Long shopsId) {
        this.shopsId = shopsId;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getHirerId() {
        return hirerId;
    }

    public void setHirerId(Long hirerId) {
        this.hirerId = hirerId;
    }

    public Long getRent() {
        return rent;
    }

    public void setRent(Long rent) {
        this.rent = rent;
    }

    public String getTrade() {
        return trade;
    }

    public void setTrade(String trade) {
        this.trade = trade;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Long getTaxi() {
        return taxi;
    }

    public void setTaxi(Long taxi) {
        this.taxi = taxi;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public Long getdId() {
        return dId;
    }

    public void setdId(Long dId) {
        this.dId = dId;
    }

    public String getShopsCode() {
        return shopsCode;
    }

    public void setShopsCode(String shopsCode) {
        this.shopsCode = shopsCode;
    }

    public String getHirerCompany() {
        return hirerCompany;
    }

    public void setHirerCompany(String hirerCompany) {
        this.hirerCompany = hirerCompany;
    }

    public String getHirerName() {
        return hirerName;
    }

    public void setHirerName(String hirerName) {
        this.hirerName = hirerName;
    }

    public String getHirerCard() {
        return hirerCard;
    }

    public void setHirerCard(String hirerCard) {
        this.hirerCard = hirerCard;
    }

    public String getHirerSex() {
        return hirerSex;
    }

    public void setHirerSex(String hirerSex) {
        this.hirerSex = hirerSex;
    }

    public String getHirerPhone() {
        return hirerPhone;
    }

    public void setHirerPhone(String hirerPhone) {
        this.hirerPhone = hirerPhone;
    }

    public int getShopsState() {
        return shopsState;
    }

    public void setShopsState(int shopsState) {
        this.shopsState = shopsState;
    }

    @Override
    public String toString() {
        return "ZhwyRentalcontract{" +
                "id=" + id +
                ", shopsId=" + shopsId +
                ", type=" + type +
                ", hirerId=" + hirerId +
                ", rent=" + rent +
                ", trade='" + trade + '\'' +
                ", startTime=" + startTime +
                ", taxi=" + taxi +
                ", endTime=" + endTime +
                ", state=" + state +
                ", dId=" + dId +
                ", shopsCode='" + shopsCode + '\'' +
                ", hirerCompany='" + hirerCompany + '\'' +
                ", hirerName='" + hirerName + '\'' +
                ", hirerCard='" + hirerCard + '\'' +
                ", hirerSex='" + hirerSex + '\'' +
                ", hirerPhone='" + hirerPhone + '\'' +
                ", shopsState=" + shopsState +
                '}';
    }
}
